package entity

type GbssUser struct {
	GBSS_ENTITY
	UserName    string `json:"userName" gorm:"index;comment:用户登陆名"`
	PassWord    string `json:"-" gorm:"comment:用户登陆密码"`
	NickName    string `json:"nickName" gorm:"default:系统用户;comment:用户昵称"`
	SideMode    string `json:"sideMode" gorm:"default:dark;comment:用户侧边主题""`
	Avatar      string `json:"avatar" gorm:"default:https://qlogo3.store.qq.com/qzone/1768918626/1768918626/100?1660137660;comment:用户头像"`
	BaseColor   string `json:"baseColor" gorm:"default:#fff;comment:基础颜色"`
	Phone       string `json:"phone" gorm:"comment:用户手机号"`
	Email       string `json:"email" gorm:"comment:用户邮箱"`
	Enable      int    `json:"enable" gorm:"default:1;comment:用户是否被冻结 1正常 2冻结"`
	AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"`
}

func (GbssUser) TableName() string {
	return "gbss_users"
}
